package com.qfjy.homework.zhanglupeng;
//使用Game的模板方法来演示play（）方法
public class TemplatePatternDemo {
    public static void main(String[] args) {
       Game game = new Cricket();
        game.play();
        System.out.println("----------------------");
        game = new Football();
        game.play();
    }

}
